<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2025/6/21
 * Time: 11:58
 */

namespace app\model;


class Config extends Base
{
    public static function keyvalue($key){
        return self::where('key',$key)->value('value');
    }

    public static function gl(){
        $list = self::select();
        foreach ($list AS $key => $value)
            $list[$value['key']] = $value['value'];
        return $list;
    }
}